// 添加计划表单
export const BASIC_FORM = [
  {
    type: 'input',
    label: '姓名',
    key: 'name',
    rules: [
      { required: true, errorMessage: '请输入姓名' }
    ]
  },
  {
    type: 'select',
    label: '性别',
    key: 'sex',
    options: [
      { text: '男', value: 1 },
      { text: '女', value: 2 },
    ],
    rules: [
      { required: true, errorMessage: '请选择性别' }
    ]
  },
  {
    type: 'input',
    label: '年龄',
    key: 'age',
    isRightSlot: true,
    rightSlotText: '岁',
    rules: [
      { required: true, errorMessage: '请输入年龄' }
    ]
  },
  {
    type: 'input',
    label: '身高',
    key: 'bodyHeight',
    isRightSlot: true,
    rightSlotText: 'cm',
    rules: [
      { required: true, errorMessage: '请输入身高' }
    ]
  },
  {
    type: 'input',
    label: '体重',
    key: 'bodyWeight',
    isRightSlot: true,
    rightSlotText: 'kg',
    rules: [
      { required: true, errorMessage: '请输入体重' }
    ]
  },
  {
    type: 'imgUpload',
    label: '上传诊断报告',
    labelDesc: '每次上传单张图片，多张图片请依次上传',
    key: 'hospitalReport',
    rules: [
      { required: true, errorMessage: '请上传诊断报告' }
    ]
  },
  {
    type: 'imgUpload',
    label: '上传影像学检查报告',
    labelDesc: '每次上传单张图片，多张图片请依次上传',
    key: 'imageReport',
    rules: [
      // { required: true, errorMessage: '请上传影像学检查报告' }
    ]
  },
  {
    type: 'imgGroupUpload',
    label: '体态图上传',
    key: 'bodySign',
    imgGroupList: [
      { desc: '侧面照', key: 'bodySignFaceImg', exampleImg: 'http://121.41.46.17:88/profile/upload/static/img/example-imgs/side_example.jpg' },
      { desc: '背面照', key: 'bodySignBackImg', exampleImg: 'http://121.41.46.17:88/profile/upload/static/img/example-imgs/back_example.jpg' },
      { desc: '右侧背面照', key: 'bodySignSideImg', exampleImg: 'http://121.41.46.17:88/profile/upload/static/img/example-imgs/right_side_example.jpg' }
    ]
  },
  {
    type: 'textarea',
    label: '运动习惯',
    key: 'exerciseHabits'
  },
  {
    type: 'textarea',
    label: '备注',
    key: 'remark'
  }
]



